package com.umakr.demo.service;

import com.umakr.demo.mapper.NianjiMapper;
import com.umakr.demo.model.Nianji;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/18.
 */
@Service
public class NianjiService {

    @Autowired
    NianjiMapper nianjiMapper;

    public List<Nianji> showAll(){
        return nianjiMapper.showAll();
    }

    public void saveNianji(Nianji nianji){
        nianjiMapper.saveNianji(nianji);
    }

    public void updataNianji(Nianji nianji){
        nianjiMapper.updataNianji(nianji);
    }

    public void deleteNianji(Nianji nianji){
        nianjiMapper.deleteNianji(nianji);
    }
}
